<!--Footer-part-->

<div class="row-fluid">
  <div id="footer" class="span12"></div>
</div>

<!--end-Footer-part-->
<script src="<?php echo $this->config->item('system_public_path');?>js/jquery.min.js"></script> 
<script src="<?php echo $this->config->item('system_public_path');?>js/jquery.ui.custom.js"></script> 
<script src="<?php echo $this->config->item('system_public_path');?>js/bootstrap.min.js"></script> 
<script src="<?php echo $this->config->item('system_public_path');?>js/jquery.uniform.js"></script> 
<script src="<?php echo $this->config->item('system_public_path');?>js/select2.min.js"></script>
<script src="<?php echo $this->config->item('system_public_path');?>js/jquery.dataTables.min.js"></script> 
<script src="<?php echo $this->config->item('system_public_path');?>js/jquery.validate.js"></script>
<script src="<?php echo $this->config->item('system_public_path');?>js/matrix.js"></script> 
<script src="<?php echo $this->config->item('system_public_path');?>js/matrix.tables.js"></script>
<script src="<?php echo $this->config->item('system_public_path');?>js/matrix.form_validation.js"></script>
<script src="<?php echo $this->config->item('system_public_path');?>js/checkselect.js"></script>
<script src="<?php echo $this->config->item('system_public_path');?>js/ajaxfileupload.js"></script>
<script type="text/javascript">
<!--
	$('#file').live('change',function(){
    	$.ajaxFileUpload
        ({
            url: '<?php echo site_url($this->config->item('system_manage_path')."upload/do_upload");?>', //用于文件上传的服务器端请求地址
            secureuri: false, //是否需要安全协议，一般设置为false
            fileElementId: 'file', //文件上传域的ID
            dataType: 'json', //返回值类型 一般设置为json
            success : function (data, status){
                if (typeof(data) != 'undefined'){
                    if (typeof(data.error) != 'undefined'){
                		//alert(data.error);
                    	alert("上传失败！");
                    	$('#pic').val(''); 
                    	$('.filename').html('未选择文件'); 
                    }else{
                		alert("上传成功！");
                    	$('#pic').val('<?php echo  substr($this->config->item('upload_path'),1);?>'+data.success); 
                    	$('.filename').html('<?php echo  substr($this->config->item('upload_path'),1);?>'+data.success); 
                    }
                }
            },
            error: function(data, status, e){
                alert(e);
            }
        })
    });
//-->
</script>
</body>
</html>
